<%@ include file="/common/taglib.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
        <decorator:title default=""/>
        - ${siteName}
    </title>
    <decorator:head/>
    <%@ include file="meta.jsp" %>
    <link rel="stylesheet" rev="stylesheet" href="/css/default/style.css" type="text/css" media="all"/>
</head>
<body>
<c:set var="menu">
    <decorator:getProperty property="meta.menu"></decorator:getProperty>
</c:set>
<c:choose>
    <c:when test="${menu eq 'doc'}">
        <c:set var="leftMenu" value=""></c:set>
    </c:when>
    <c:when test="${menu eq 'openSource'}">
        <c:set var="leftMenu" value="openSource/openSourceLeft"></c:set>
    </c:when>
    <c:when test="${menu eq 'tool'}">
        <c:set var="leftMenu" value=""></c:set>
    </c:when>
    <c:when test="${menu eq 'article'}">
        <c:set var="leftMenu" value="article/articleLeft"></c:set>
    </c:when>
    <c:when test="${menu eq 'news'}">
        <c:set var="leftMenu" value="news/newsLeft"></c:set>
    </c:when>
    <c:when test="${menu eq 'java'}">
        <c:set var="leftMenu" value="java/javaLeft"></c:set>
    </c:when>
    <c:when test="${menu eq 'ajax'}">
        <c:set var="leftMenu" value="ajax/ajaxLeft"></c:set>
    </c:when>
    <c:when test="${menu eq 'it'}">
        <c:set var="leftMenu" value="it/itLeft"></c:set>
    </c:when>
    <c:otherwise>
        <c:set var="leftMenu" value="left"></c:set>
    </c:otherwise>
</c:choose>
<div id="container">
    <div id="header">
        <%@ include file="/WEB-INF/view/cms/header.jsp" %>
    </div>
    <div id="content">
        <c:if test="${not empty leftMenu}">
            <c:import url="/WEB-INF/view/cms/${leftMenu}.jsp"/>
        </c:if>
        <%--<%@ include file="/WEB-INF/view/cms/left.jsp" %>--%>
        <decorator:body/>
    </div>
    <div id="footer">
        <%@ include file="/WEB-INF/view/cms/footer.jsp" %>
    </div>
</div>
</body>
</html>